package com.ms.p2p.dao;



import com.ms.p2p.entity.account.AccountBank;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;



public interface MemberAccountBankDao extends CrudDao<AccountBank> {
	 AccountBank findByUserId(@Param("userId") int userId);

	 List<Map<String, Object>> findPager(@Param("begin") int begin,
										 @Param("size") int pageSize, @Param("userId") String userId,
										 @Param("userName") String userName);

	int findCount(@Param("userId") String userId,
				  @Param("userName") String userName);

	int updateByUserId(@Param("userId") String userId,
					   @Param("userName") String userName);
	int updateByUserId(AccountBank entity);

	List<Map<String,Object>> findAll(@Param("userId") String userId,
									 @Param("userName") String userName);
}
